<?php


namespace App\Http\Controllers\Weapp;


use App\Tool\Json;

class Auth extends Base
{

    protected $userInfo;

    function __construct()
    {

        $this->middleware('checkWeappToken');


//        $this->userInfo=resolve('weapp_user');


    }


    private function checkToken()
    {


        $token = request()->input('token');

        $info = $this->getUserInfo($token);

        return $info;

    }


}
